<?php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', 'on');

define('APPLICATION_PATH', dirname(__FILE__));
define('TPL', APPLICATION_PATH."/views");
session_start();
define("LOG_ID",        '' . time() . getmypid() . mt_rand(10000,20000));//日志id， 用于记录一次请求的所有记录

$dev = true;
$config = require  APPLICATION_PATH . "/conf/" .($dev ? 'dev' : 'online') ."/config.php";
$app  = new Yaf_Application($config);
//$application = new Yaf_Application( APPLICATION_PATH . "/conf/application.ini");
//$application->bootstrap()->run();
$app->bootstrap()->run(); //call bootstrap methods defined in Bootstrap.php

